package smartcrud.spring.models.crud;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import smartcrud.common.orm.Page;
import smartcrud.common.orm.PropertyFilter;

@Service
public class HelloServiceJdbcImpl implements HelloService {
	@Autowired
	private HelloDao helloDao;

	@Override
	public Hello createHello(Hello hello) {
		return helloDao.createHello(hello);
	}

	@Override
	public void deleteHello(Long id) {
		helloDao.deleteHello(id);
	}

	@Override
	public void updateHello(Hello hello) {
		helloDao.updateHello(hello);
	}

	@Override
	public Hello findHelloById(Long id) {
		return helloDao.findHelloById(id);
	}
	
	@Override
	public List<Hello> findAllHellos() {
		return helloDao.findAllHellos();
	}
	
	@Override
	public Page<Hello> findByPage(Page<Hello> page, final List<PropertyFilter> filters) {
		return helloDao.findByPage(page,filters);
	}

}
